package com.ruoyi.wechat.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.wechat.mapper.WxAppointmentMapper;
import com.ruoyi.wechat.domain.WxAppointment;
import com.ruoyi.wechat.service.IWxAppointmentService;

/**
 * 营地预约Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-28
 */
@Service
public class WxAppointmentServiceImpl implements IWxAppointmentService 
{
    @Autowired
    private WxAppointmentMapper wxAppointmentMapper;

    /**
     * 查询营地预约
     * 
     * @param appointId 营地预约主键
     * @return 营地预约
     */
    @Override
    public WxAppointment selectWxAppointmentByAppointId(String appointId)
    {
        return wxAppointmentMapper.selectWxAppointmentByAppointId(appointId);
    }

    /**
     * 查询营地预约列表
     * 
     * @param wxAppointment 营地预约
     * @return 营地预约
     */
    @Override
    public List<WxAppointment> selectWxAppointmentList(WxAppointment wxAppointment)
    {
        return wxAppointmentMapper.selectWxAppointmentList(wxAppointment);
    }

    /**
     * 新增营地预约
     * 
     * @param wxAppointment 营地预约
     * @return 结果
     */
    @Override
    public int insertWxAppointment(WxAppointment wxAppointment)
    {
        return wxAppointmentMapper.insertWxAppointment(wxAppointment);
    }

    /**
     * 修改营地预约
     * 
     * @param wxAppointment 营地预约
     * @return 结果
     */
    @Override
    public int updateWxAppointment(WxAppointment wxAppointment)
    {
        return wxAppointmentMapper.updateWxAppointment(wxAppointment);
    }

    /**
     * 批量删除营地预约
     * 
     * @param appointIds 需要删除的营地预约主键
     * @return 结果
     */
    @Override
    public int deleteWxAppointmentByAppointIds(String[] appointIds)
    {
        return wxAppointmentMapper.deleteWxAppointmentByAppointIds(appointIds);
    }

    /**
     * 删除营地预约信息
     * 
     * @param appointId 营地预约主键
     * @return 结果
     */
    @Override
    public int deleteWxAppointmentByAppointId(String appointId)
    {
        return wxAppointmentMapper.deleteWxAppointmentByAppointId(appointId);
    }
}
